Component({
  options: {
    addGlobalClass: true,
  },
  properties: {
    title: {
      type: String,
    },
    closeType: {
      type: String,
      value: 'inner',
    },
    visiable: {
      type: Boolean,
      value: false,
    },
    confirmDisabled: {
      type: Boolean,
      value: false
    }
  },
  methods: {
    closeDialog() {
      this.triggerEvent('close')
    },
    confirmDialog() {
      if (this.properties.confirmDisabled) return
      this.triggerEvent('confirm')
    }
  },
})
